 
package com.wtzz.police.base.model.exception;

/**
* 没哟找到记录的异常
*  
* @author zxh  
* @date 2019-01-24   
*/
public class WtzzNoRecordException extends RuntimeException {
	private static final long serialVersionUID = 4682898658058332725L;

	protected String target;

	public WtzzNoRecordException() {
		super();
	}

	public WtzzNoRecordException(String target) {
		super();
		this.target = target;
	}

	public WtzzNoRecordException(Throwable cause, String target) {
		super(cause);
		this.target = target;
	}

	@Override
	public String getMessage() {
		return "找不到" +(target==null?"目标对象": target);
	}
}
